{extend name='admin@public/content'}

{block name="content"}
<form autocomplete="off" onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='form-horizontal layui-form padding-top-20'>

    <div class="form-group">
        <label class="col-sm-2 control-label">举报人</label>
        <div class='col-sm-8'>
            <input value='{$vo.name|default=""}' class="layui-input" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">联系电话</label>
        <div class='col-sm-8'>
            <input value='{$vo.phone}' class="layui-input" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">举报原因</label>
        <div class='col-sm-8'>
            <textarea name="desc" class="form-control">{$vo.desc|default=''|htmlspecialchars_decode}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">举报凭证</label>
        <div class='col-sm-8'>
            <table class="layui-table background-item margin-none" lay-size="sm" lay-skin="nob">
                <thead>
                <tr>
                    <td>凭证图片</td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="text-top">
                        <input type="hidden" name="voucher" value="{$vo.voucher|default=''}">
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <script>
        $('input[name="voucher"]').uploadMultipleImage();
    </script>

    <div class="hr-line-dashed"></div>

    <div class="col-sm-7 col-sm-offset-2">
        <div class="layui-form-item text-center">
            {if !empty($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}
            <button class="layui-btn" type="submit">保存</button>
            <button class="layui-btn layui-btn-danger" type='button' onclick="window.history.back()">取消</button>
        </div>
    </div>

    <script>
        require(['jquery', 'ckeditor', 'angular'], function () {
            window.form.render();
            //window.createEditor('[name="content"]', {height: 500});
        });
    </script>
</form>
{/block}